<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-simplevalidator-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="../css/common.css">
<link rel="stylesheet" type="text/css" href="../css/jquery-simplevalidator.css">
<script type="text/javascript">
	$(document).ready(function() {
		SimpleValidator.addType("idno", "^\\d{3}$", function(idno) {
			return (parseInt(idno[0]) +　parseInt(idno[1])) % 10 == parseInt(idno[2]);
		})
		$("#demoform").bindSimpleValidator();
	});
</script>
</head>
<body>
	<input type="button" value="Back" onclick="history.back();">
	<div class="center">
		<h3>DEMO 1</h3>
		<br>
		<form action="submit.html" method="post" id="demoform">
			<div>
				text: <input type="idno" name="idno" id="idno" />
			</div>
			<div>
				<input type="submit" value="submit" />
			</div>
		</form>
	</div>
</body>
</html>